package com.icongyou.enterprise.talent_analysis.event;

import lombok.Getter;
import org.springframework.context.ApplicationEvent;

/**
 * 学生数据变更事件
 */
@Getter
public class StudentDataChangeEvent extends ApplicationEvent {
    private final String studentId;
    private final String changeType;  // SUBMISSION, GRADE, ACTIVITY, etc.
    private final String sourceId;    // 数据源ID（如提交ID、成绩ID等）
    
    public StudentDataChangeEvent(Object source, String studentId, String changeType) {
        this(source, studentId, changeType, null);
    }
    
    public StudentDataChangeEvent(Object source, String studentId, String changeType, String sourceId) {
        super(source);
        this.studentId = studentId;
        this.changeType = changeType;
        this.sourceId = sourceId;
    }
}
